package com.example.szys.inviteCode;

import java.util.Random;

public class CreateCode {
    public static String createCode(){
        String str="ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
        Random random=new Random();
        StringBuffer sb=new StringBuffer();
        for(int i=0;i<6;i++){
            int number =random.nextInt(36);
            sb.append(str.charAt(number));
        }
        return sb.toString();
    }
}
